 <script language="javascript">
    
    function insertCmsLink() {
        
      
            data = $("#link").attr("value");
            data = '<a href="url_redirect" url="'+$("#link").attr("value")+'">'+$("#link :selected").text()+'</a>';

            
            if (ifCkeditor()) {
                  insertText(data);
            } else {
                $("#editor").append(data);     
            }
            
  
            $('#dialogBox').dialog('close');    

    }
    
    
    
    </script> 







<p>snapol pages</p>
<p>
  <label>
    <input type="checkbox" name="chkAjaxLink" id="chkAjaxLink" />
    Ajax Link</label>
</p>
<p>
  <label>
    <input type="checkbox" name="chkAjaxLink" id="chkAjaxLink" />
    als snapol Button</label>
</p>
<p>
  <label>
    <select name="link" id="link" table="page" orderby="titel">
      <option value="[_url]">[titel]</option>
    </select>
  </label>
</p>
<p>
        <label>
          <input type="button" name="button" id="button" value="Komponent einf&uuml;gen" onClick="insertCmsLink();">
        </label>
      </p>


<p>Neue Seite<br />
  <label>
    <input type="text" name="textfield" id="textfield" />
  </label>
</p>